package xmlexperiment;

/**
 *
 * @author mark
 */
public class Speech 
{
    String[] lines;
    String persona;

    public Speech(String persona, String[] lines) 
    {
        this.lines = lines;
        this.persona = persona;
    }

    public String[] getLines() 
    {
        return lines;
    }

    public void setLines(String[] lines) 
    {
        this.lines = lines;
    }

    public String getPersona() 
    {
        return persona;
    }

    public void setPersona(String persona) 
    {
        this.persona = persona;
    }

    @Override
    public String toString() 
    {
        String rep = persona + "\n";
        for (String s: lines)
        {
            rep += s + "\n";
        }
        return rep;
    }
     
}
